package com.zxn.ssyx.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.zxn.ssyx.mapper.SkuImageMapper;
import com.zxn.ssyx.mapper.SkuPosterMapper;
import com.zxn.ssyx.model.product.SkuImage;
import com.zxn.ssyx.model.product.SkuPoster;
import com.zxn.ssyx.service.SkuPosterService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class SkuPosterServiceImpl extends ServiceImpl<SkuPosterMapper, SkuPoster> implements SkuPosterService {
    @Autowired
    private SkuPosterMapper skuPosterMapper;
    @Override
    public List<SkuPoster> selectBySkuId(Long id) {
        LambdaQueryWrapper<SkuPoster> lqw = new LambdaQueryWrapper<>();
        lqw.eq(SkuPoster::getSkuId,id);
        return skuPosterMapper.selectList(lqw);
    }
}
